# 工具配置模块
from api.config import API_PDF

# 定义工具分类
tool_categories = [
    {"id": "all", "name": "全部工具"},
    {"id": "common", "name": "常用工具"},
    {"id": "encoding", "name": "编码加密"},
    {"id": "network", "name": "网络工具"},
    {"id": "datetime", "name": "时间日期"},
    {"id": "text", "name": "文本处理"},
    {"id": "pdf_edit", "name": "PDF编辑"},
    {"id": "image", "name": "图像工具"},
    {"id": "photography", "name": "摄影工具"},
    {"id": "video", "name": "视频工具"},
    {"id": "documentation", "name": "说明书"}
    
]

# 支持的语言列表
supported_languages = [
    {"code": "zh", "name": "中文"},
    {"code": "en", "name": "English"}
]

# 定义工具列表
tools = [
    {
        "id": "bookmarks",
        "name": "网页收藏",
        "description": "收藏和管理常用网站链接",
        "icon": "bookmark",
        "categories": ["documentation"],
        "route": "/tools/bookmarks"
    },
    {
        "id": "time-converter",
        "name": "时间戳转换",
        "description": "Unix时间戳与日期时间的互转换工具",
        "icon": "clock",
        "categories": ["datetime"],
        "route": "/tools/time-converter"
    },
    {
        "id": "encoding-converter",
        "name": "编码转换工具",
        "description": "Base64/URL/Unicode编码转换工具",
        "icon": "repeat",
        "categories": ["encoding"],
        "route": "/tools/encoding-converter"
    },
    {
        "id": "qrcode-generator",
        "name": "二维码生成",
        "description": "文本/URL转二维码图片工具",
        "icon": "image",
        "categories": ["image"],
        "route": "/tools/qrcode-generator"
    },
    {
        "id": "ico-generator",
        "name": "ICO图标生成",
        "description": "将PNG/JPG/SVG图片转换为ICO图标文件",
        "icon": "image",
        "categories": ["image"],
        "route": "/tools/ico-generator"
    },
    {
        "id": "color-picker",
        "name": "颜色选择器",
        "description": "多种颜色编码格式转换与色板选择工具",
        "icon": "droplet",
        "categories": ["image"],
        "route": "/tools/color-picker"
    },
    {
        "id": "markdown-editor",
        "name": "Markdown编辑器",
        "description": "在线Markdown文档编辑与实时预览工具",
        "icon": "edit-3",
        "categories": ["text"],
        "route": "/tools/markdown-editor"
    },

    {
        "id": "photo-param-calculator",
        "name": "摄影参数计算器",
        "description": "计算光圈、快门速度、ISO等摄影参数的工具",
        "icon": "camera",
        # "categories": ["common", "photography"],
        "categories": ["photography"],
        "route": "/tools/photo-param-calculator"
    },
    {
        "id": "timelapse-calculator",
        "name": "延迟摄影计算器",
        "description": "计算延迟摄影所需的拍摄间隔和照片数量",
        "icon": "film",
        "categories": ["photography"],
        "route": "/tools/timelapse-calculator"
    },
    {
        "id": "weather-checker",
        "name": "摄影天气查看",
        "description": "查看拍摄地点的天气情况，帮助规划拍摄时间",
        "icon": "cloud",
        "categories": ["photography"],
        "route": "/tools/weather-checker"
    },
    {
        "id": "video-downloader",
        "name": "网页视频下载",
        "description": "从主流网站下载视频文件",
        "icon": "video",
        "categories": ["video"],
        "route": "/tools/video-downloader"
    },
    {
        "id": "document-search",
        "name": "文档搜索",
        "description": "搜索和上传说明书文档",
        "icon": "search",
        "categories": ["documentation"],
        "route": "/tools/document-search"
    },
    # {
    #     "id": "pdf-editor",
    #     "name": "PDF编辑器",
    #     "description": "在线编辑PDF文件，支持文本、图片修改与添加",
    #     "icon": "file-text",
    #     "categories": ["pdf_edit"],
    #     "route": "/tools/pdf-editor"
    # },
    {
        "id": "stirling-pdf",
        "name": "Stirling PDF 工具集",
        "description": "强大的在线PDF处理工具集",
        "icon": "tool",
        "categories": ["pdf_edit"],
        "route": "/tools/stirling-pdf"
    }
]